package demo;

import java.io.FileOutputStream;
import java.io.IOException;

public class Helloworld {
    public static void main(String[] args) {
        try {
            FileOutputStream fos =new FileOutputStream("fos.txt");
            fos.write(97);
            fos.write(98);
            System.out.println("写出完毕");
            fos.close();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
